import request from '@/router/axios';

// 设备分组分页列表
export const getIotGroupList = (data) => {
  return request({
    url: '/api/uic-system/iotgroup/list',
    method: 'get',
    params: {
      ...data
    }
  })
}
// 设备分组分页列表
export const getIotGroupPage = (data) => {
  return request({
    url: '/api/uic-system/iotgroup/page',
    method: 'get',
    params: {
      ...data
    }
  })
}
// 新增或修改设备分组
export const iotGroupSubmit = (row) => {
  return request({
    url: '/api/uic-system/iotgroup/submit',
    method: 'post',
    data: row
  })
}


// 删除设备分组
export const iotGroupRemove = (row) => {
  return request({
    url: '/api/uic-system/iotgroup/remove',
    method: 'post',
    data: row
  })
}

